var model   = require('../model')
,   token   = {
    path    : "/",
    method  : "get",
    auth    : function(req, next){
        if(req.originalUrl === "/" || req.originalUrl === "/index")
            return next();
        model.token(req, next);
    }
};

module.exports = token;
